package src;

//import static com.sun.xml.internal.org.jvnet.mimepull.FactoryFinder.cl;

/**
 * Created by dell on 2017/7/31.
 */
 public class All {
    public static void main(String[] args){
        try{
            Class cl= Class.forName(args[0]);
//通过类类型，创建该类的对象
            Stand s = (Stand) cl.newInstance();
            s.start();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
interface Stand {
    public void start();
}
class B implements Stand{
        public void start(){
            System.out.print("B...start");
        }
}
